{extend name="public/basic"}
{block name="main"}
{auth:button rule="home/config/add" rules="$buttons"}<button class = "layui-btn layui-btn-success" action="dialog" action-url="{:url('add')}" action-title="新增配置项">新增</button>{/auth:button}
<table class = "layui-table">
    <thead class = "navbar-inner">
        <tr>
            <th>ID</th>
            <th>名称</th>
            <th>标题</th>
            <th>分组</th>
            <th>分类</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="records" id="vo"}
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.title}</td>
            <td>{:dchtml("DC_CONFIG_GROUP",$vo['group'])}</td>
            <td>{:dchtml("DC_CONFIG_TYPE",$vo['type'])}</td>
            <td>
                {auth:button rule="home/config/edit" rules="$buttons"}<i title="编辑" action="dialog" action-title="编辑配置项" action-url="{:url('edit',['id'=>$vo['id']])}" class = "layui-icon-edit layui-icon" ></i>{/auth:button}
                {auth:button rule="home/config/del" rules="$buttons"}<i class="layui-icon layui-icon-delete" title="删除" action="del" action-url="{:url('del',['id'=>$vo['id']])}"></i>{/auth:button}
            </td>
        </tr>
        {/volist}
    </tbody>
</table>
{$records->render()}


{/block}
